﻿using System;
using System.Reflection;

namespace NUtils
{
    public class Array
    {
        public static T[] AllocateWithDefault<T>(int length, T default_value)
        {
            T[] t = new T[length];
            for (int i = 0; i < length; ++i)
            {
                t[i] = default_value;
            }

            return t;
        }
    }
}
